package code

import (
	"context"
	"google.golang.org/grpc"
)

func ReqLog(ctx context.Context,req interface{}, info *grpc.UnaryServerInfo,handler grpc.UnaryHandler) (resp interface{}, err error) {
	JsonPrint(info)

	return handler(ctx, req)
}


func ReqStreamLog(srv interface{}, req grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error{
	JsonPrint(info)
	return handler(srv,req)
}